Optimal. Leaf size=50 \[ \frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )-\frac {1}{4} b c^4 \tanh ^{-1}\left (\frac {x}{c}\right )+\frac {1}{4} b c^3 x+\frac {1}{12} b c x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {6097, 263, 302, 207} \[ \frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{4} b c^3 x-\frac {1}{4} b c^4 \tanh ^{-1}\left (\frac {x}{c}\right )+\frac {1}{12} b c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 263
Rule 302
Rule 6097
Rubi steps
\begin {align*} \int x^3 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right ) \, dx &=\frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{4} (b c) \int \frac {x^2}{1-\frac {c^2}{x^2}} \, dx\\ &=\frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{4} (b c) \int \frac {x^4}{-c^2+x^2} \, dx\\ &=\frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{4} (b c) \int \left (c^2+x^2+\frac {c^4}{-c^2+x^2}\right ) \, dx\\ &=\frac {1}{4} b c^3 x+\frac {1}{12} b c x^3+\frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{4} \left (b c^5\right ) \int \frac {1}{-c^2+x^2} \, dx\\ &=\frac {1}{4} b c^3 x+\frac {1}{12} b c x^3+\frac {1}{4} x^4 \left (a+b \tanh ^{-1}\left (\frac {c}{x}\right )\right )-\frac {1}{4} b c^4 \tanh ^{-1}\left (\frac {x}{c}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 67, normalized size = 1.34 \[ \frac {a x^4}{4}+\frac {1}{8} b c^4 \log (x-c)-\frac {1}{8} b c^4 \log (c+x)+\frac {1}{4} b c^3 x+\frac {1}{4} b x^4 \tanh ^{-1}\left (\frac {c}{x}\right )+\frac {1}{12} b c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 48, normalized size = 0.96 \[ \frac {1}{4} \, b c^{3} x + \frac {1}{12} \, b c x^{3} + \frac {1}{4} \, a x^{4} - \frac {1}{8} \, {\left (b c^{4} - b x^{4}\right )} \log \left (-\frac {c + x}{c - x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.17, size = 262, normalized size = 5.24 \[ -\frac {\frac {3 \, {\left (\frac {b {\left (c + x\right )}^{3} c^{5}}{{\left (c - x\right )}^{3}} + \frac {b {\left (c + x\right )} c^{5}}{c - x}\right )} \log \left (-\frac {c + x}{c - x}\right )}{\frac {{\left (c + x\right )}^{4}}{{\left (c - x\right )}^{4}} + \frac {4 \, {\left (c + x\right )}^{3}}{{\left (c - x\right )}^{3}} + \frac {6 \, {\left (c + x\right )}^{2}}{{\left (c - x\right )}^{2}} + \frac {4 \, {\left (c + x\right )}}{c - x} + 1} + \frac {2 \, b c^{5} + \frac {6 \, a {\left (c + x\right )}^{3} c^{5}}{{\left (c - x\right )}^{3}} + \frac {3 \, b {\left (c + x\right )}^{3} c^{5}}{{\left (c - x\right )}^{3}} + \frac {6 \, b {\left (c + x\right )}^{2} c^{5}}{{\left (c - x\right )}^{2}} + \frac {6 \, a {\left (c + x\right )} c^{5}}{c - x} + \frac {5 \, b {\left (c + x\right )} c^{5}}{c - x}}{\frac {{\left (c + x\right )}^{4}}{{\left (c - x\right )}^{4}} + \frac {4 \, {\left (c + x\right )}^{3}}{{\left (c - x\right )}^{3}} + \frac {6 \, {\left (c + x\right )}^{2}}{{\left (c - x\right )}^{2}} + \frac {4 \, {\left (c + x\right )}}{c - x} + 1}}{3 \, c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 62, normalized size = 1.24 \[ \frac {x^{4} a}{4}+\frac {b \,x^{4} \arctanh \left (\frac {c}{x}\right )}{4}+\frac {b c \,x^{3}}{12}+\frac {b \,c^{3} x}{4}+\frac {c^{4} b \ln \left (\frac {c}{x}-1\right )}{8}-\frac {c^{4} b \ln \left (1+\frac {c}{x}\right )}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 57, normalized size = 1.14 \[ \frac {1}{4} \, a x^{4} + \frac {1}{24} \, {\left (6 \, x^{4} \operatorname {artanh}\left (\frac {c}{x}\right ) - {\left (3 \, c^{3} \log \left (c + x\right ) - 3 \, c^{3} \log \left (-c + x\right ) - 6 \, c^{2} x - 2 \, x^{3}\right )} c\right )} b \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.78, size = 45, normalized size = 0.90 \[ \frac {a\,x^4}{4}-\frac {b\,c^4\,\mathrm {atanh}\left (\frac {c}{x}\right )}{4}+\frac {b\,x^4\,\mathrm {atanh}\left (\frac {c}{x}\right )}{4}+\frac {b\,c\,x^3}{12}+\frac {b\,c^3\,x}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.56, size = 46, normalized size = 0.92 \[ \frac {a x^{4}}{4} - \frac {b c^{4} \operatorname {atanh}{\left (\frac {c}{x} \right )}}{4} + \frac {b c^{3} x}{4} + \frac {b c x^{3}}{12} + \frac {b x^{4} \operatorname {atanh}{\left (\frac {c}{x} \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________